#include <stdio.h>


int main()
{
    FILE *file = fopen("file.csv", "a");

    char name[256];
    char number[256];
    printf("name: \n");
    scanf("%s", &name);
    printf("number: \n");
    scanf("%s", &number);

    fprintf(file, "%s,%s\n", name, number);

    fclose(file);

    return 0; 
}